add close function to storage interface add common defer function call which will close db connection remove context as soon as it's not needed anymore updated unit tests