Simple database engine in C - project for my studies