added class for database connection.