added sqlite, dynamic buttons based on db