Adding connection to database