DB connect method and login verifying method