Changed key of tag table and added auto increment
changed update to patch
added timestamp