Redesigned indexing to reduce db access time; Fixed bug in Product; modified timeout in Config_app