changed url to get database