Fixed database issue
Fixed error