adding database connection and stuff