some error about selecting database