Fixed controller and MySQL permissions