implement database API !register