MASSIVE REFACTORE and sqlite db