[FEATURE] execute database migration multiple times

This is needed for some database modifications (like
adding an auto_increment column).