fix errors and can insert and select records.(never try it in file)