create db url using databases settings