Add internal database

First draft