updated stored procedures for timestamp