constructing query urls works
working dates inserts, problem with committing to db though