mod to database