Added version tracking in db