Create database.c

Inefficient-but-working database.