whitespace
dead assignment, read_pressure never read.
dead assignments ('uri' never read, 'session' never read)
minor return cleanup.
dead assignment ("typestr" always reset)
dead assignment ("reserve" never read before being reset).
dead assignment ("fd" never read before being subsequently set)
Don't cast the return from calloc, it's not necessary.
Don't drop core if table_count < 1; database_count < 1 makes no sense,
check it as well.
If the configuration sanity check fails, we're done, don't keep trying.
Dueling static analyzers: clang's scan-build thinks it's a dead read if
typestr is set outside the switch as well as inside the switch, gcc 4.1
warnings and FlexeLint think that typestr might not be used if it's not
set outside the switch statement.  Set one case outside of the switch,
and just break on that value inside the switch.