created database connection class