Database API sign support

I extended db_store to support various signs (closing #514). I also added a test case to demonstrate the usage.