Fixed database loading and last name bug
Added comments