beginning db impl