simplify design, code and use database