database constraint and home page design changed