refactor rebuild and files
make load_db consistent
refactor database names
fix missing stdarg.h
kill the seperate parse_args function