table: add autoincrement type
database: fix metadata creation with create/1