Small tweaks in classes: DB and Input

Added more functionality to DB and Input classes.
DB: added method getLastInsertedId();
Input: getAllPost();