add elect api
add default to db