Preparing the file move and db creation