add swagger support and change db to postgres