Prior to running Memoria database update script you should make sure that PostgreSQL service is running on the server. Although, before or after the update you might need to temporarily stop the service to do various manipulations (replacing files, etc).