first version of db cache