added timestamps functionality like in active record