copy DB bootstrap code to new file to fulfil project requirement