refactor database methods into new class idea_store