update sql query in proj view