Use origin instead of hardcoded db url