Can't really work on it unless the errors are fixed.

What is LoginDatabase?