type checking for inputs in DB Manager