Refactor and update to LowDB 0.4