feature/storage#6 change orm to factory design pattern