Added UPDATE and fixed INSERT to return new key. MYSQL only at this stage