working version + add db.sql