update sql for delete, remote nav bar for admin