decorator for save()
currently to use with postgre