Use protocol for DB interaction.