Add first stages of database connection