fix rake tasks for updating db