Added database ties for GET and POST requests.
Fixed merge conflict