also fix base_url handling in the stores config sql template