change function name
Refactering: impl createDb function for initialize file and database