Implement scheduled task.
Add database filepath as parameter.