db can insert and retrieve