Fixes Opsworks rails sql issue