deploy db: extracted create-db to its own function
deploy db: added triggers to output sql file