finished db access