progress with db layer