What can cause Rails to be able to read but not write on mysql db? It's not about mysql privileges, I've narrowed that out