don't call db before cli parsing
added batch script to setup.py
simplified cli