Changed the way sql file was supply to mysql command stdin