Make the db classworking and compatable with old gleez db