Generic sql helpers
Model kv find from and till
Add null checks
REST handler template