Changed database API