add enable/disable buttons when connect to db