Exiting on invalid SQL query in ludoDB