updated UI, add slots, add connection to database