Implement a few missing db commands