working db integration