[PATCH 2/5] moveconfig: Read the database in a separate function