stored proc: Fixes for timestamps with RMA record management