fix schema and migrations
add database example