Updating the database commands to fix deprecation warnings.