register database
add database resource