db prototype