backup database, made table rectangles work

Signed-off-by: Hubert Cross <hubert@tropez.org>