Remove delimiters from sql syntax, remove forestnames table, remove database based error codes
Change database based error codes to php exception based