update logo controller to only attempt to show a logo if one is stored
add some missing indexes to the database for foreign keys