Fixed theme db issue