created db tables with relations