move function from ogerdb to extjs