Changes made for testing new possible solutions to mysql problem. Still not working