Minor Update

Fixed Some SQL errors updated with  redesign