added basic database connection