SQL safe; and request logs

Signed-off-by: EKlevrai <olivier.ripart@live.fr>