Correct database issue