Move mysql.js into lib/
Transform query foreign key into join.
Fix relation to inner join transformation.
Fix issue with date conversion.