Almost working DB