updated database repositories and entities