change db to postgresql
added Guard automated test