add full function to admin page to construct data

add full function to admin page to construct data in GUI, also add more
db interfaces