added connection for database