with db stuff