move the db logic to the app controller
check if a compound is a favourite when it first loads
move and resize the favourite star