fixed Database Session

If the option 'perfix' is not empty, the table prefix will be added repeatedly.