Moved all queries to #define

Signed-off-by: Stephen Cox <stephencoxmail@gmail.com>
Code formatting

Signed-off-by: Stephen Cox <stephencoxmail@gmail.com>
Add LIBBUDGET_ to version.h

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