make repository to use database adapter