connect the database