Replace databaseInterface with Django models

~~`databaseInterface` is still imported in a few places in MCPServer, primarily for the `getUTCTime` function that will be moved elsewhere, and for database locking that may be removeable.~~

See comments below.
Oops, duplicated code in the merge.