fixed transactions in database
wrapped endpoints in url
auth flow with transactions