refactoring create databases and users of databases