Core/Databases: Removed ACE dependencies on some of the database handling code.