Maintenance fixes
Moved functions from main
Added error_print and debug_print

Signed-off-by: Stephen Cox <stephencoxmail@gmail.com>
Fixes pthread linker error

Signed-off-by: Stephen Cox <stephencoxmail@gmail.com>
budget_query_bool free zErrMsg on sucess

Signed-off-by: Stephen Cox <stephencoxmail@gmail.com>
Change format of error_print

Signed-off-by: Stephen Cox <stephencoxmail@gmail.com>
Correct comments

Signed-off-by: Stephen Cox <stephencoxmail@gmail.com>
Print message if database is created

Signed-off-by: Stephen Cox <stephencoxmail@gmail.com>
Added gitignore

Signed-off-by: Stephen Cox <stephencoxmail@gmail.com>
Updated sqlite to version 3.7.16