Update DB

tables are set and refresh command works fine. also the create tables and db if not exists works with no issues. Did you want me to look trough your code and add the functions where needed?