More stuff for non-blocking SQL queries (lua)