nightmare with the database