Updated and fixed Code and SQL File.