added q to package json and fixed syntax error in dbHelpers