move db_dir and log_dir variables to config file together with migrations_dir, trigger error when not available