Fixed database bug
Fixed database bug