index is now a db generation page
added enum for schema
added utility database functions