chagne true/fase to 1/0 for database