Move dbcore to libs/

add the documentation too