fetch refact. db refact