Fixed database methods which returned false incorrectly.