more updates, starting db class, more deprecated functions, still should be maintaining full compatibility