Cleaning up, using parseOptions more, starting apc database method, removing lastQuery from database class