add DB connection queries on POST