Fixed db.lua