Made JobQueueDB use getConnectionRef()

* Also moved insertFields() function up a bit about DB connection methods

Change-Id: I7a9d9c9bc71038fe280542b13e0c0e94bfc4de1e
Merge "Made JobQueueDB use getConnectionRef()"