Added command line argument parsing and argument for database socket