fix mysql table schemas. Changing foreign key on tasks table so

it doesn't break, removing indexes on status since status is
low cardinality, and reducing length of columns if possible.