conditionally creating dbs.