more db handling