Modified database `id` columns

Changed them to {TABLE_NAME}_id, to allow use of NATURAL JOIN
Changed textsection and textsection_type to text_section and
text_section_type