Setup the models of the database

Signed-off-by: Ian Macalinao <ianmacalinao@gmail.com>