fix #127. Invalid delete queries should return an error

Don't allow where conditions other than 'time > and time <' in delete
queries