The checkbox now gets data from database

The checkbox is now drawn based on the value of public