Databases: add save_max_id test