update database example file to use postgresql