read practice file from database instead of file