If you are running 5.0.10 or earlier, run the SQL : CREATE INDEX idx_te_state ON db_time_entry (state)
Browse (or 'cd' on Linux) to the CELOXIS-INST-FOLDER. This is the folder in which you have installed Celoxis. For example, if your psa_5.0.X folder is in C:\Celoxis, then go to this folder.