established connection to db in config/main