Connected the db in main activity