Moved db connections into initializer