Updating the database commands to fix deprecation warnings.

rake spec passes.