Fixed database issue in previous commit.