add db_creation script, some refactor