more db methods and some backend sql testing partial skeleton added