MySQL-specific insert/update queries