Use generic sql types
Get db_path completely from environment variable
Add get_var and save_var
Commit every 2 seconds
Insert or replace in save_var