Admin UI database wrapper completed

Wrapped the database with a model so that we don't have the disconnect
problems.  This is only as "complete" as the database currently was.