connected successfully to the database