add file upload for read.php and made some changes

made changes for other files.. test loging system.. its works and
retriving getting error(Database Error)
Errors -
Call to a member function query() on a non-object in.
Undefined variable: pdo in.