fixed new purchase date bug + db update