Fixes a database issue