postgre sql data

{{x.id}} - {{x.name}}
{ getData: { model:"models", db: { query:"select name, active, id from tblname where active =$1;[0]", connection:"postgresqlConnection" } } }