Add psgql and migrate db