Now with threads!

It's been a long time coming, but I've finally added a thread that loads
the database on start.  Next I'll add for all other database operations.