added connection to database