Bug: Tables without auto increment gave error

Fixed problem in Model that outputed malformed php if the table didn't
have at least one auto increment column.