db: error logging and user dialog, script to compile resource file and ui's