Fix saving the binary keys into the db for 0.11dev and newer