finished check db flow