SQL's for checking if page exist, and for updating

Not implemented in step 1 yet