changed column 'type' on 'entities' table to 'e_type' because the former is a reserved word for storing the class in case of inheritance