Update postgres state and add locale