update README with more details about public API
add some tests to prevent possible SQL injection regressions
add some more security precautions to protect the unaware developers