Fixing stuff to save board to database