app: db.c: Include headers for getpid()

getpid() requires sys/types.h and unistd.h. These are comming in from
common.h, but lets explicitly include them in db.c also.

Signed-off-by: Andrew Clayton <andrew@opentechlabs.co.uk>