implement homepage local db