Added FOR UPDATE and FOR SHARE statements for postgres dialect