Added auto-maintenance logic to Database

It's now working with CanaryMods DataAccess objects but on a separate database connection.