Added prepared statements and named parameters
Changed JSON methods