Update db.rake

Added environment check to prevent samples to be loaded during CI builds.