db & table working