Fix Installer Autologin & Fix db_optimize()