Swap installation of perl modules and db creation, should fix #573.