fix player render, optimize db saving