working database schematics