Change database to pg. Add guard.