commit db when finish
remove pass from code