fixed bug in database, added btn and led