Added scripts to read from database and fixed typo in dbconnect.php