Implemented the index-creation in the database setup code.