Writing a database in C pt.9 - Starting to handle indexing management