adding hooks to save data to our custom tables for improved performance