Configurations via command line

- Cleaned up main.py by moving db stuff into a session maker function
  for SA
- Cleaned up main.py by making a main() function for command line arg
  parsing