add ability to choose db, and db creation flag