tdb: Make tdb_new_database() follow a more conventional style