working in base to db