lib/register: #refactor to take wanted properties in array
add listing function
dev: fix db