Add trading records save and query from local database feature