Add "REPLACE" method to database class
MySQL (since 5.5) supports a REPLACE
command: https://dev.mysql.com/doc/refman/5.5/en/replace.html
What it basically does is a INSERT into a table. If a value with the given primary/unique key already exists, the existing value is deleted.
@henbug Can we/I implement this?
Edited by Jan Wennrich