updated to use fake db