Added SQL scripts; bug fix on login.