Database error(s) fixing