Added mysql_affected_rows(), mysql_insert_id() and reimplemented mysql_query_callback()