network testing with db.sqlalchemy