Implement database insert for media queued offline.
Ensures that every valid video that plays will be stored in the
database. This will prevent most "Not in database" alerts.
Merge pull request #13 from d-dd/forIssue#8

Fix #8.