Fixed the Ajax problem with the login form.

Also added the DB script to this repo as well.