enables persistent DB connections in localsettings_template.py

gives about a 50% CPU usage improvement on the production server, caused
by constantly closing and re-opening the DB connection during bursts of
sensor data POSTs.