added middleclick save to database

Signed-off-by: Alexander Skjolden <alex@plastboks.net>