thumbnail preloading
preload fixes
stupid .
fixes for empty db