database creation and view start