Database develop

Added the model tests. Made change to ensure only id is being passed to sidekiq.