More re-factor to use Parameterized queries, docs added for common write operations as well