getting the database working again