Added context awareness to database helper.
Pool will be closed when config class is destructed