cap db stuff