Fixed database issue with status update