Try cap with database