Moved database post requests to separate methods