fix database createdAt field update on row update