stable insert, update, select mysql functions