frontend and db fixes