bugfix and import db.sql