database connection skeleton