attempt at fixing the db problem