Merge bug, forgot to rename variable
Bug: Make compatible with most SQL dialects
Bug: Properly format date sent over HTTP