Fixes when using MySQL

- db_query of an insert returns 0 if the table doesn't have an AI PK!!