Add console client and fix work with db.