methods returning JSON string added
optimisation using PDO query