work: code glue up, added test sql file