Add a basic template for the index
Move the database runner to the top level