change db to postgres
remove timestamp for relation table for the sake of postgres - not null
gem/database for using mysql