completed and tested a function to store values of the realated features in the sqlite database