Fixed mysql syntax such that json now contains required username