Move migration in to database schema

For an easier deploy.
Also separated data definition from data manipulation.

Signed-off-by: Simone <hello@simonewebdesign.it>