Changed variable ready for database