another attempt at fixing the database