made SQL table a config option + cosmetics