Refactor interface to get persistent DB