Added second page logic

Added the query for the second page, and added the selected job to be
written to the db.
Migration files from syncing db.

Files for syncing db onto mac.