initial work with db