more database schema improvements
remove pragmas from empty schema
set sqlite pragmas at runtime
fix export_nicks()
compact export_nicks() a bit