little bugfix in the autocompletion and changed some websql transactions to readtransactions (so they don't lock the database)