Added windows hash support to db.c
Added a bool type
Converted source to C89