Functions are now split into ui-functions.js and db-functions.js. index.html is now clearer. db-functions.js is imported from old personal-raineri repo and the core db functions are optimized now. Most of functions were commented at this point.