BS-7594, create the scripts for the database