Reformat database owner ternary
Add tests for specifying a DB owner