Now using postgres database to keep track of requests, instead of text file