reorganized apihelper. added bucket to db. 
Signed-off-by:Matthew Scaperoth <mscapero@gwu.edu>