fixed database_url parsing