SQL bug fix and added pages to edit projects