Database config
Try to connect to database
Another try
Working connection to db