I still have problems with Sanctuary, the moment I leave it somehow has insufficient beds and happiness drops, when I'm in it, more than enough beds. How do I solve this bug ?
No way that I know of. It's common...although not with beds. All the times I've encountered it or seen it mentioned, it has been with food and water.
Are you sure that your beds are adequately sheltered? It should matter, although given the scarcity of information it's not clear whether or not it does matter.
What is the button to move items around btw ?
The same one you used to build them. If you're looking at the item while in building mode, the name of it should appear onscreen. The button you used to build (default is 'e' on PC) should appear on the HUD labelled as "Select". Do that and the item will move with you. You can also move it forwards and backwards with the mouse scroll wheel and up and down with the mouse scroll wheel if you hold the build/select button down (although this doesn't always work).
If you want to move items around more easily, build a small rug (anything will do, but a small rug is the most convenient way) and put the item on it. Any part of the item, as long as it's touching the rug. If you look at the rug in build mode and hold the build/select button down, it will select the rug and the item touching it and treat them as a single item. The crucial difference is that the collision detection for the whole will be based solely on the rug. That makes it possible to move the item into positions it could not normally be put in. You can, for example, overlap wall or fence sections to create a continous wall or fence even if they wouldn't usually snap together. You can place joined wall or fence sections at angles to each other. You can put wall sections inside other wall sections (e.g. to rebuild a partially collapsed wall). You can put a whole roof inside a ruined roof. You can do almost anything that way, even lay power lines through walls in order to get power inside a building. You could even build an entire building in one place and then move the whole building and put it anywhere, regardless of what's in the way (as long as it isn't in the way of the rug or whatever you're using). If you want a building up a tree, with the tree passing through the building, no problem with that technique.
I also accidentally marked ceramic items, how do I remove this mark ?
In a typically roundabout way. Bethesda isn't good at making things possible in a convenient way, but they are good at allowing a variety of things so workarounds are often possible.
Put any junk item containing ceramic in your inventory.
Go into your inventory and select "Component View". If I recall correctly, it's 'c' by default on PC. It should appear in the HUD, anyway. Component view will show all raw materials you have in your inventory on the left and which junk items contain the selected material on the right.
Select the component "Ceramic" and select the "highlight" option (it's a toggle, although it's not labelled as such because Bethesda).