may be done with db