Errors fixed. Database generation works and include works