Finish logic for creating a DB