Rolled back changes on this file to when we didn't have a separate db class.