adds cross domain header
adjusts db url