fixed an issue with grabbing db data in index.php