Added last insert Id method
Added editing and adding pages