Simple database connection class