Refactor utility method createDatabaseTables().