[pacman-dev] [PATCH 2/7] repo-add: move database creation into its own function