Add staging database 2/2

Set linked DB based on stage. First deployment may fail

Signed-off-by: Mathias Kaufmann <me@stei.gr>