fix text display, less db functions